package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zy3/api/internal/config"
	"zy3/zy3rpc/zy3rpcclient"
)

type ServiceContext struct {
	Config config.Config
	Zy3Rpc zy3rpcclient.Zy3rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Zy3Rpc: zy3rpcclient.NewZy3rpc(zrpc.MustNewClient(c.Zy3Rpc)),
	}
}
